import request from "@/utils/request"

/**
 * 获取店铺列表
 */
export function getShopList() {
  return request.get('/merchants/get-shop-list')
}

/**
 * 分页获取店铺
 */
export function getShopPage(params) {
  return request.get('/merchants/get-shop-page', { params })
}

/**
 * 获取店铺信息
 */
export function getShopInfo(id: string, params?: object) {
  return request.get(`/merchants/get-by-id/${id}`, { params })
}
